﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSW.Framework.Common.Binding;

namespace CSW.Security.UI.DevEx.Search
{
    internal class Security_User_Search : Search<Security_User>
    {
        public Security_User_Search()
        {
        }

        public Security_User_Search(Security_User item)
            : base(item)
        {
        }

        public string UserID
        {
            get { return m_BusinessObject.UserID; }
        }

        public string FirstName
        {
            get { return m_BusinessObject.FirstName; }
        }

        public string LastName
        {
            get { return m_BusinessObject.LastName; }
        }

        public static IQueryable<Security_User_Search> GetAll()
        {
            return from s in SecurityTest.DataContextInstance.Security_User
                   orderby s.UserID
                   select new Security_User_Search(s);
        }
    }
}
